CC=gcc
FLAGS=-fPIC -O2 -I../../ -I/usr/include/crisscross
LDFLAGS=-I../../ -lcrisscross

all:
	$(CC) $(FLAGS) -c -o redsocks.o redsocks.cpp
	$(CC) $(LDFLAGS) -shared -o redsocks.so redsocks.o
	chmod a-x redsocks.so

install:
	rm *.o
	mv *.so ../../../modules/

clean:
	rm *~ *.o *.so
